package cn.hou.java.designpattern._11composite;

import java.util.List;
// 文件: 树叶(不再有子节点)
public class File implements IFile {

	private String name;
	
	public File(String name) {
		this.name = name;
	}

	@Override
	public void display() {
		System.out.println(name);
	}

	@Override
	public boolean add(IFile file) {
		return false;
	}

	@Override
	public boolean remover(IFile file) {
		return false;
	}

	@Override
	public List<IFile> getChild() {
		return null;
	}

}
